FROM docker.jianmuhub.com/library/node:16.19.0-buster-slim
ENV HOME_PATH /home/app
RUN mkdir -p $HOME_PATH
WORKDIR $HOME_PATH
ADD ./scripts/handle.js ./handle.js
ADD ./scripts/node_modules.tar.gz node_modules
ADD ./package.json ./package.json
ADD ./yarn.lock ./yarn.lock
ENTRYPOINT ["node","/home/app/handle.js"]
